import { Component, Prop, Vue, Watch } from 'vue-property-decorator'

@Component
export default class CommonMixins extends Vue {
  @Prop({
    type: Object
  })
  data!: any

  dataZoomEnd!: number

  @Watch('data', {
    immediate: true,
    deep: true
  })
  handleDataChange(this: any, newVal: any) {
    if (this.transformData) {
      this.transformData(newVal)
    }
  }
}
